<template>
 <div class="bottom">
    <div class="left">
       <div class="p1">
         <div v-for="(item,index) in list" :key="index" class="p1line" @click="eachKind(index)">
           <span >{{item.name}} <span class="listlinem" v-if="index!=2">|</span></span>
         </div>
       </div>
      <p class="p2">地址：{{ companyAddress }}</p>
      <p class="p3" @click="toicp" style="cursor:pointer;">© {{ filingTime }} 杭州电猪科技公司 版权所有 {{ recordNumber }} 公司是一家专注于做一手房的平台</p>
    </div>
   <div class="right">
     <img src="../assets/images/download.png" alt="" class="downpmg">
   </div>
 </div>
</template>

<script>
import {updateFrontUser} from "@/api/vip";

export default {
name: "commonBottom",
  data(){
  return{
    companyAddress:'',
    recordNumber:'',
    filingTime:"",
    list:[{
      name:'官网首页'
    },{
      name:'楼盘查询'
    },{
      name:'加入我们'
    }
    ]
  }
  },
  mounted() {
  this.getall()
  },
  methods:{
    getall(){
      const time =this.time();
      let params = {
        action:'website.getWebsiteConfigure',
        timestamp: time,
        signature: this.clos_encryptDes("website.getWebsiteConfigure", time),
        accessKeyId: "APId1482c4fc9",
        deviceId:'1',
      }
      updateFrontUser(params).then(
          (res) => {
            if (res.data.statusCode == 201 && res.data.success == true) {
              this.companyAddress=res.data.data[0].companyAddress
              this.recordNumber=res.data.data[0].recordNumber
              this.filingTime=res.data.data[0].filingTime
              localStorage.setItem('Companyinformation',JSON.stringify(res.data.data[0]));
            }else{
              this.loading = false;
            }
          }).catch((error) => {
        console.log(error,'99');

      });
    },
    toicp(){
      window.location.href = 'https://icp.chinaz.com/home/info?host=fangpinyouxuan.com';
    },
    eachKind(index){
      console.log(this.propdatas,'父组件传来的吗')
      // this.chosenKind =this.propdatas
      if(index==0){
        this.$router.push({
          path: '/'
        })
      }else if(index==1){
        this.$router.push({
          path: '/Home'
        })
      }else if(index==2){
        this.$router.push({
          path: '/jointeam'
        })
      }
    }
  }
}
</script>

<style scoped lang="scss">
 .bottom{
   height: 208px;
   background: #1F1F1F;
   width: 100%;
   padding:0 190px;
   box-sizing: border-box;
   display: flex;
   justify-content: space-between;
   .left{
     text-align: left;
    .p1{
       height: 30px;
       line-height: 30px;
       margin-top: 60px;
      display: flex;
      justify-content: flex-start;
      .p1line{
        color: #FFFFFF;
        span{
          color: #FFFFFF;
          font-size: 14px;
          font-family: Source Han Sans CN;
          font-weight: 400;
        }
        .listlinem{
         margin-right: 20px;
          color: #FFFFFF;
        }
      }
     }
     .p2{
       font-size: 14px;
       font-family: Source Han Sans CN;
       font-weight: 400;
       color: #FFFFFF;
       height: 30px;
       line-height: 30px;
     }
     .p3{
       font-size: 14px;
       font-family: Source Han Sans CN;
       font-weight: 400;
       color: #FFFFFF;
       height: 30px;
       line-height: 30px;
     }
   }
   .right{
     .downpmg{
       margin: 50px 50px 0 0;
     }
   }
 }
</style>
